﻿using Furion.DatabaseAccessor;

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project5.Core.Entities
{
    [Table("testing")]
    public class Testing : IEntity
    {
        [Key]
        //[Column(TypeName = "char(36)")]//数据库存储字符串 可以实现 guid的排序一致性，mssql mysql,csharp
        public Guid Id { get; set; }

        public int Sort { get; set; }

        public long Timestamp { get; set; }
        public DateTimeOffset CreateTime { get; set; }

        public Testing1? Testing1 { get; set; }

    }

    [Table("testing1")]
    public class Testing1 : IEntity
    {
        [Key]
        //[Column(TypeName = "char(36)")]
        public Guid Id { get; set; }

        public int Sort { get; set; }

        public long Timestamp { get; set; }
        public DateTimeOffset CreateTime { get; set; }

    }
}
